﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>
<%@ Import Namespace="Fashion.Common.Method" %>
<%@ Import Namespace="Fashion.Common.Util" %>
<div class="user-info">
    <% if (Request.IsAuthenticated)
       { %>
    Welcom <b>
        <%=Html.Encode(((EnhancedPrincipal)Page.User).Data.UserName) %></b>! [<%=Html.ActionLink("Logoff","LogOff", "Account", new{returnurl = Request.Path.UrlEncode()},null) %>]
    <%
   }
       else
       {
    %>
    [<%=Html.ActionLink("Login","Login", "Account", new{returnurl = Request.Path},null) %>]
    [<%=Html.ActionLink("Register","Register", "Account") %>]
    <%
   }
    %>
</div>
